<template>
  <div>
    <Parent v-if="visiable"></Parent>
    <button @click="visiable=!visiable">switch</button>
  </div>
</template>

<script lang='ts' setup>
import {ref} from 'vue'
import Parent from './components/Parent.vue';
let visiable=ref<boolean>(true)
</script>

<style lang='scss' scoped>
</style>